<?php
/**
 * 必须使用二维数组
 */
return [
    'auth_menu' => [
        [
            //父级id
            'pid'   => 18,
            //菜单名称
            'title' => '定时任务管理',
            //图标
            'icon'  => 'layui-icon-time',
            //类型：0=目录；1=菜单
            'type'  => 1,
            //地址url
            'node'  => '/app/crontab/crontab',
            //排序（越小越靠前）
            'sort'  => 100
        ],
    ],
    'auth_rule' => [
        [
            'type'    => 1,
            'node'    => '/app/crontab/crontab',
            'title'   => '定时任务管理',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/crontab/crontab/index',
            'title'   => '定时任务列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/crontab/crontab/add',
            'title'   => '添加任务',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/crontab/crontab/edit',
            'title'   => '修改任务',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/crontab/crontab/delete',
            'title'   => '删除任务',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/crontab/crontab/logList',
            'title'   => '日志列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/crontab/crontab/reload',
            'title'   => '重启任务',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/crontab/crontab/status',
            'title'   => '更改状态',
            'is_auth' => 1,
        ],
    ]
];
